//
//  UIView+Inspectable.swift
//  ZYSinaWeibo
//
//  Created by 陟岳 on 16/5/26.
//  Copyright © 2016年 陟岳. All rights reserved.
//

import UIKit

extension UIView {

    @IBInspectable var cornerRadius: CGFloat {
    
        get {
            
            return layer.cornerRadius
        }
        set {
        
            layer.cornerRadius = newValue
        }
    }
    
    
    @IBInspectable var borderCorlor: UIColor {
    
        get {
        
            return UIColor(CGColor: layer.borderColor!)
        
        }
        set {
        
            layer.borderColor = newValue.CGColor
        
        }
        
    
    }
    
    
    
    

}
